import state from "./state";

const mutations = {
	setVuexToken(state, options) {
		state.cattoken = options
	},
	setUserInfo(state, options) {
		state.userInfo = options; // 更新用户信息

	},
	SET_USER_INFO(state, userInfo) {
		state.userInfo = userInfo;
	},
	setUser(state, options) {
		state.User = options;
	},
	// setUserInfo(state, options) {
	// 	state.vuex_user = options;
	// 	state.userInfo = options;
	// 	state._jdtoken = options.token;
	// },
	updateUser(state, userData) {
		state.userinfo = userData;
	},
	clearUser(state) {
		state.user = null;
	},
	setSpecs: (state, data) => {
		state.specs = data
	},
	setSpecslist: (state, data) => {
		state.specslist = data
	},
	setStatus: (state, data) => {
		state.status = data
	},
	setGoodsid: (state, data) => {
		state.goodsid = data
	},
}
export default mutations